package com.online_exam.service;

import com.online_exam.domain.Subject;
import com.online_exam.viewmodel.admin.education.SubjectEditVm;
import com.online_exam.viewmodel.admin.education.SubjectPageRequestVM;

import java.util.List;


public interface SubjectService {
    //添加科目
    public int addSubject(Subject subject);

    //通过id查科目
    public Subject findById(Integer id);

    //查找所有科目
    public List<Subject> findAll();

    public List<Subject> page(SubjectPageRequestVM vm);

    public int updateSubject(SubjectEditVm subject);

    public int deleteById(Integer id);
}
